﻿/************************************************************************/
/* FileName:        GCSize
 * Author:          Aric.W
 * Created:         2013/9/17 16:24:21
 * Version:         A001
 * Compiler:        Visual Studio 2010
 * Description:     
 * 
 * History:
 * <Author>         <Time>              <Version>   <Desc>
 * Aric.W           2013/9/17 16:24:21  A001        create
/************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public struct GCSize
    {

        /// <summary>
        /// 宽
        /// </summary>
        private int width;
        public int Width
        {
            get { return width; }
            set { width = value; }
        }

        /// <summary>
        /// 高
        /// </summary>
        private int height;
        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        public GCSize(int width, int height)
        {
            this.width = width;
            this.height = height;
        }

        /// <summary>
        /// 转化为System.Drawing.Size
        /// </summary>
        /// <param name="size"></param>
        /// <returns></returns>
        public System.Drawing.Size GetSize()
        {
            return new System.Drawing.Size(width, height);
        }

    }//end GCSize
}
